<?php

    class GrupoFamiliar extends BaseModel{

        static $table_name = 'gruposfamiliares';
        static $primary_key = 'idgrupofamiliar';
    
        static $has_many = array(
            array(
                '_integrantes',
                'class_name' => 'Afiliado',
                'foreign_key' => 'grupoFamiliar'
            )
        );
        
        static $belongs_to = array(
            array(
                '_plan',
                'class_name' => 'Plan',
                'foreign_key' => 'plan'
            )
        );
        
    }

?>
